package cn.ztydata.teachingsystem.heaven.entity;

import java.sql.Timestamp;
import java.util.List;

/**
 * 资源实体类
 * Created by chenxin on 2014/12/1.
 */
public class Resource extends BaseEntity {
    private Long id; //ID
    private String name; //资源名称
    private String author; //作者
    private Long typeId; //资源类型ID
    private String typeName;//资源类型名称
    private String mediaType; //媒体类型
    private Integer kind; //资源种类
    private Long uploaderId; //上传者ID
    private String uploaderName;//上传者名称
    private Timestamp uploadTime; //上传时间
    private Integer size; //资源大小
    private Long deptId; //系部ID
    private Long specialtyId; //专业ID
    private String specialtyName;//专业名称
    private Long courseId; //课程ID
    private String downloadUrl; //下载地址
    private Integer status = 0;
    private Integer converterStatus = 0;
    private Long auditorId;//审核人
    private Timestamp auditTime;//审核时间

    private List<KnowledgePoint> kps;//知识点集合

    private String origin;//来源
    private String showAddr;//显示地址
    private String content;//内容
    private String remark;//简介

    private Integer pv;//浏览量
    private Integer downloadCount;//下载量


    private Integer groupType; //群组类型（0非群组 1课程 2专业 3班级）
    private Long groupId; //群组ID
    private Integer recommended;//是否推荐（0没推荐 1推荐）
    private Integer best;//是否收藏（0没收藏 1收藏）
    private int role; //上传者角色（0老师 1学生）

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getShowAddr() {
        return showAddr;
    }

    public void setShowAddr(String showAddr) {
        this.showAddr = showAddr;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getMediaType() {
        return mediaType;
    }

    public void setMediaType(String mediaType) {
        this.mediaType = mediaType;
    }

    public Integer getKind() {
        return kind;
    }

    public void setKind(Integer kind) {
        this.kind = kind;
    }

    public Long getUploaderId() {
        return uploaderId;
    }

    public void setUploaderId(Long uploaderId) {
        this.uploaderId = uploaderId;
    }

    public String getUploaderName(){
        return uploaderName;
    }

    public void setUploaderName(String uploaderName){
        this.uploaderName = uploaderName;
    }

    public Timestamp getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Timestamp uploadTime) {
        this.uploadTime = uploadTime;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getSpecialtyId() {
        return specialtyId;
    }

    public void setSpecialtyId(Long specialtyId) {
        this.specialtyId = specialtyId;
    }

    public String getSpecialtyName() {
        return specialtyName;
    }

    public void setSpecialtyName(String specialtyName) {
        this.specialtyName = specialtyName;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus(){
        return status;
    }

    public void setStatus(Integer status){
        this.status = status;
    }

    public Integer getConverterStatus(){
        return converterStatus;
    }

    public void setConverterStatus(Integer converterStatus){
        this.converterStatus = converterStatus;
    }

    public Long getAuditorId() {
        return auditorId;
    }

    public void setAuditorId(Long auditorId) {
        this.auditorId = auditorId;
    }

    public Timestamp getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(Timestamp auditTime) {
        this.auditTime = auditTime;
    }

    public Integer getPv(){
        return pv;
    }

    public void setPv(Integer pv){
        this.pv = pv;
    }

    public Integer getDownloadCount(){
        return downloadCount;
    }

    public void setDownloadCount(Integer downloadCount){
        this.downloadCount = downloadCount;
    }

    public List<KnowledgePoint> getKps() {
        return kps;
    }

    public void setKps(List<KnowledgePoint> kps) {
        this.kps = kps;
    }

    public Integer getRecommended() {
        return recommended;
    }

    public void setRecommended(Integer recommended) {
        this.recommended = recommended;
    }

    public Integer getBest() {
        return best;
    }

    public void setBest(Integer best) {
        this.best = best;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
}
